package com.example.mybank;

import com.example.mybank.config.CloseConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.CrossOrigin;

@EnableTransactionManagement
@EnableScheduling
@SpringBootApplication
@MapperScan("com.example.mybank.mapper")
@EnableConfigurationProperties(CloseConfig.class)
@CrossOrigin
public class MyBankApplication {
    public static void main(String[] args) {
        SpringApplication.run(MyBankApplication.class, args);
    }
}
